import { ActionReducerMap } from '@ngrx/store';

import { OwnState, ownReducer } from './own.reducer';
import { ProfessionalState, professionalReducer } from './professional.reducer';
import { PublicState, publicReducer } from './public.reducer';

export interface ResourceTreeState {
    own: OwnState,
    professional: ProfessionalState,
    public: PublicState
}

export const reducers: ActionReducerMap<ResourceTreeState> = {
    own: ownReducer,
    professional: professionalReducer,
    public: publicReducer
}; 

export * from './own.reducer';
export * from './professional.reducer';
export * from './public.reducer';